<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"  import="cn.fanyamin.domain.*,java.util.*"%>
<%@ include file="taglibs.jsp" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title>PIM - Personal Information Management System</title>
<!--the layout and text stylesheets-->
<link href="./stylib/css_styles/layouts/2_col_liquid_faux.css" media="all" rel="stylesheet" />
<link href="./stylib/css_styles/text/text_n_colors.css" media="all" rel="stylesheet" />
<style>
#loginForm table { 
    border:2px groove #EEEEEE;
    margin:30px;
    line-height:30px
}
 </style>
</head>

<body class="lime">
<h3>Test</h3>
<%
out.println("-----------------session---------------------<br>");
java.util.Enumeration e0=session.getAttributeNames();
while(e0.hasMoreElements())
{
String temp=(String)e0.nextElement();
out.println(temp+"="+session.getAttribute(temp)+"<br>");
}
out.println("-----------------request---------------------<br>");
java.util.Enumeration e1=request.getAttributeNames();
while(e1.hasMoreElements())
{
String temp=(String)e1.nextElement();
out.println(temp+"="+request.getAttribute(temp)+"<br>"); 
}
out.println("-----------------headers---------------------<br>");
java.util.Enumeration e2=request.getHeaderNames();
while(e2.hasMoreElements())
{
String name=(String)e2.nextElement();
out.println(name+"="+request.getHeader(name) +"<br>"); 
}
out.println("-----------------cookies---------------------<br>");
Cookie[] cookies = request.getCookies();
for(int i=0; i<cookies.length; i++) {
    Cookie cookie = cookies[i];
    out.println(cookie.getName()+"="+cookie.getValue() +"<br>"); 
}

out.println("----------------------------------------------<br>");
out.println("getContextPath="+request.getContextPath()+"<br>"); 
out.println("getPathInfo="+request.getPathInfo()+"<br>"); 
out.println("getRequestURI="+request.getRequestURI()+"<br>"); 
out.println("getRequestURL="+request.getRequestURL()+"<br>");
out.println("getServletPath="+request.getServletPath() +"<br>");

Map<Integer,String> map = Item.getItemTypes();
request.setAttribute("itemTypes",map);
%>
<SELECT NAME="categoryID" ID="categoryID">
<c:forEach items="${itemTypes}" var="entry">
        <OPTION VALUE="${entry.key}">${entry.value}
</c:forEach>
</SELECT>
<fmt:message key="GoalType.Long"/>
<bean:message key="GoalType.Long" />
<%@ include file="copyRight.jsp" %>
</body>
</html>



